﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace SARControlLib
{
	/// <summary>
	/// SARNumControl.xaml 的交互逻辑
	/// </summary>
	public partial class SARNumControl : UserControl
	{
		public SARNumControl()
		{
			this.InitializeComponent();
		}


        private int showNum;

        /// <summary>
        /// 按钮上显示的文本
        /// </summary>
        public int ShowNum
        {
            get
            {
                return showNum;
            }
            set
            {
                showNum = value;
                foreach(Path p in First.Children)
                {
                    p.Visibility = Visibility.Hidden;
                }
                First.Children[showNum].Visibility = Visibility.Visible;
            }
        }
	}
}